package com.example.administrator.amicool516zzm.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.example.administrator.amicool516zzm.R;

/**
 * Created by Administrator on 2017/5/16.
 */
 public class LoginActivity extends AppCompatActivity implements View.OnClickListener {
    private Button bt1;

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.amicoolzhuce);
        init();
    }

    private void init() {
        bt1 = (Button) findViewById(R.id.bt1);    //返回登陆
        bt1.setOnClickListener(this);
    }


    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.bt1:
                Intent intent = new Intent(LoginActivity.this, MainActivity.class);
                startActivity(intent);
                break;
        }
    }
}